Skip to content

docs(docs): fix 404 on v3 config-migration page from v4 upgrade guide#2429

Merged
bpamiri merged 1 commit into
developfrom
claude/condescending-chatterjee-b17197
May 6, 2026
Merged

docs(docs): fix 404 on v3 config-migration page from v4 upgrade guide#2429
bpamiri merged 1 commit into
developfrom
claude/condescending-chatterjee-b17197

Conversation

@bpamiri

@bpamiri bpamiri commented May 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

The link in v4-0-0-snapshot/upgrading/2x-to-3x.mdx pointing at /v3-0-0/upgrading/3-0-0-config-migration/ returns 404. Reported via Slack.

Root cause: The target file was named 3.0.0-config-migration.md — the only dotted filename in the entire docs tree. Astro/Starlight's slug generator strips dots entirely rather than converting them to dashes, producing the unintuitive live URL /v3-0-0/upgrading/300-config-migration/. PR #2181 introduced the link assuming dots-to-dashes — that assumption was wrong.

Changes

  • Rename 3.0.0-config-migration.md3-0-0-config-migration.md so the URL matches every other doc filename in the tree (verified via git mv to preserve history). The existing link in 2x-to-3x.mdx already uses dashes and now resolves correctly.
  • Redirect /v3-0-0/upgrading/300-config-migration//v3-0-0/upgrading/3-0-0-config-migration/ in astro.config.mjs to preserve any external bookmarks to the dots-stripped slug while it was live.
  • Sidebar entry: The config-migration page was orphaned from src/sidebars/v3-0-0.json entirely — added as a child under INTRODUCTION > Upgrading using the existing link + items idiom (rendered as a collapsible group with "Overview" + the new entry by normalizeItem in astro.config.mjs).

Test plan

  • CI passes (commitlint, build)
  • After merge + deploy, verify /v3-0-0/upgrading/3-0-0-config-migration/ returns 200
  • After merge + deploy, verify /v3-0-0/upgrading/300-config-migration/ redirects to the new URL
  • After merge + deploy, verify the link from /v4-0-0-snapshot/upgrading/2x-to-3x/ no longer 404s
  • After merge + deploy, verify the page is reachable via the v3 sidebar under INTRODUCTION > Upgrading

🤖 Generated with Claude Code

The link from /v4-0-0-snapshot/upgrading/2x-to-3x/ to the v3 Config
Directory Migration page 404'd because the file was named
3.0.0-config-migration.md and Astro's slug generator strips dots
entirely rather than converting them to dashes, producing the
unintuitive URL /v3-0-0/upgrading/300-config-migration/. PR #2181
introduced the link assuming dots-to-dashes — that assumption was
incorrect.

- Rename file to 3-0-0-config-migration.md so the URL matches every
  other doc filename in the tree and the existing link works as written.
- Add redirect from /300-config-migration/ to preserve any external
  bookmarks accumulated while the dotted-slug URL was live.
- Add a sidebar entry under INTRODUCTION > Upgrading; the page was
  orphaned from v3-0-0.json entirely.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added the docs label May 6, 2026
@bpamiri
bpamiri merged commit a434a64 into develop May 6, 2026
9 checks passed
@bpamiri
bpamiri deleted the claude/condescending-chatterjee-b17197 branch May 6, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant